FROM python:3.10-slim

WORKDIR /app

RUN apt-get update && apt-get install -y \
    sed \
    wireguard-tools \
    curl \
    jq \
    && rm -rf /var/lib/apt/lists/*

COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

COPY . .

ENV FLASK_ENV=production

EXPOSE 5000

CMD ["python", "app.py"]

